Skip to content

chore: migrate from requirements.txt to uv with pyproject.toml#89

Merged
scyyh11 merged 1 commit intomasterfrom
chore/migrate-to-uv
Mar 29, 2026
Merged

chore: migrate from requirements.txt to uv with pyproject.toml#89
scyyh11 merged 1 commit intomasterfrom
chore/migrate-to-uv

Conversation

@scyyh11
Copy link
Copy Markdown
Collaborator

@scyyh11 scyyh11 commented Mar 29, 2026

Summary

  • Replace flat requirements.txt with structured pyproject.toml (hatchling backend)
  • Separate deps into runtime, dev ([dependency-groups]), docs and tools ([project.optional-dependencies])
  • Pin albumentations>=1.3.0,<2.0 (archived, 2.x has breaking API changes), numpy<2.3 and scipy<1.16 (Python 3.10 compat)
  • Bump minimum Python from 3.7 to 3.10
  • Remove cffi (transitive), dataclasses (builtin), pandas/tabulate (rewritten out)
  • Add rich (was missing, used by tools/check_fonts.py)
  • Rewrite tools/prepare_effect_layout_example.py to use stdlib instead of pandas
  • Update CI to astral-sh/setup-uv@v7, actions/checkout@v5, uv sync --locked
  • Move black/isort/pytest/mypy configs into pyproject.toml
  • Delete update.sh and requirements.txt

Test plan

  • uv sync --locked --all-extras installs without errors
  • uv run pytest — all 4 tests pass
  • CI pytest workflow passes
  • CI pages workflow passes (only triggers on merge to master)

🤖 Generated with Claude Code

Replace flat requirements.txt with structured pyproject.toml using
hatchling backend. Separate dependencies into runtime, dev (dependency
group), docs and tools (pip-compatible extras). Pin albumentations <2.0
(archived, 2.x has breaking changes), numpy <2.3 and scipy <1.16 (3.10
compat). Bump minimum Python from 3.7 to 3.10.

- Remove cffi (transitive dep of lmdb) and dataclasses (builtin)
- Add rich (was missing, used by tools/check_fonts.py)
- Rewrite tools/prepare_effect_layout_example.py to drop pandas/tabulate
- Update CI to use astral-sh/setup-uv@v7 and actions/checkout@v5
- Move black/isort/pytest/mypy configs into pyproject.toml
- Delete update.sh (maintainer helper, trivial to run manually)

Signed-off-by: Bvicii <yizhanhuang2002@gmail.com>
@scyyh11 scyyh11 merged commit e98729f into master Mar 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant